#ifndef APP_BUZZER_H
#define APP_BUZZER_H

#include "main.h"

enum {
    APP_BUZZER_OFF,
    APP_BUZZER_ON
}; 


typedef struct {
    unsigned char state;
    unsigned int counts;
} app_buzzer_mgr_t;

void app_buzzer_init(void);

void TIM17_Init(void);
void TIM17_Stop(void);

void app_buzzer_pwm_irq_handler(void);

void app_buzzer_start(void);
void app_buzzer_off(void); 

unsigned char app_get_buzzer_state(void);

#endif